package com.ocom.human.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.human.EntityResourceMenu;

import java.util.List;

public interface ResourceMenuService extends IService<EntityResourceMenu> {
    List<EntityResourceMenu> getSaasMenuList(Integer saasNo,Integer ifCustom,Integer role);

    Boolean InsertSaasMenu(Integer saasNo, String saasName);

    EntityResourceMenu getSaasMenu(Integer saasNo, Integer menuId);

    EntityResourceMenu getMenuId(Integer menuId);

    Boolean removeSaasMenu(Integer menuId);

    void updateResourceMenus(EntityResourceMenu entityResourceMenus);

    EntityResourceMenu getSaasMenus(EntityResourceMenu entityResourceMenu);

    void updateResourceMenu(EntityResourceMenu entityResourceMenu,Integer Id);

    EntityResourceMenu getGtSaasMenus(EntityResourceMenu entityResourceMenu);

    void updateMoveDownSaasMenu(EntityResourceMenu entityResourceMenus, Integer id);

    EntityResourceMenu parentMenu(Integer saasNo, Integer parentMenuId);

    EntityResourceMenu entityResourceMenuName(String name, Integer parentMenuId);

    EntityResourceMenu sortResourceMenuName(Integer type, Integer parentMenuId);

    boolean saveResourceMenuName(EntityResourceMenu entityResourceMenuName);

    EntityResourceMenu entityResourceMenuNames(String name, Integer parentMenuId, Integer menuId);

    boolean updateResourceMenuName(JSONObject jsonObject, JSONObject menuInfo);
}
